<style>
    .delete{
        float: right;
        margin-right: 64px;
    }
</style>
<!-----Print screen Javascript---->

<script language="javascript">
function Print()
{
	document.print.submit();
        document.getElementById('printbutton').style.display='none';
	window.print();
}
</script>
<!-- Print Screen Javascript ends--->
<?php //debug($adjectives)?>
<?php echo $this->Javascript->link(array('jeditable/jquery','jeditable/jquery.ui','jeditable/jquery.editinplace','jeditable/demo')); ?>
<table width="100%" border="1" id="table" >
    <tr> 
        <th colspan="6" style="text-align: center;"><?php echo $this->Paginator->sort('Adjective', 'title'); ?></th>
    </tr>
    <tr id="table_content">
   <?php $n='0'; foreach ($adjectives as $value):
       if($n%6=='0' && $n!='0'){ echo "</tr>";if($n%12=='6'){echo "<tr id='table_content' style='background:#e1ebf6;'>"; }else{echo "<tr id='table_content'>";}}
       
       echo "<td width='17%' ><div id='".$value['Adjective']['id']."' class='editme' style='float:left;'> ".$value['Adjective']['title'].'</div><div class="delete"><a href="#" >X</a></div></td>';
       $n++;
       ?>
          
                <?php endforeach; ?>
        
    
    </tr>
    
    <tr align="right">
        <td colspan="5" >
            <?php echo $this->Paginator->numbers(); ?>
        </td>
    </tr>
</table>


<!--- ***********************************   This will be used to print screen        *************************************/--->

<div style="margin-top:31px; margin-left:3px;">
    <form name="print" method="POST" action="">
        <input type="submit" id="printbutton" name="print" value="Print" style="width:60px; height:30px;" onclick="Print();" />
    </form>
</div>	
<!---************************************************************************/--->


<?php
echo $this->Form->create('Adjective',array('action'=>'admin_index'));


?>
<div style="width: 100%; margin:40px 0px 40px 0px;"></div>
<table class="noprint">
    <tr>
        <td>
          Add each adjective in a new line.
        </td>
    </tr>
    <tr>
        <td>
          <?php  echo $this->Form->input('title',array('type'=>'textarea','cols'=>'90','rows'=>'8','label'=>'','autocomplete'=>"off"));?>
        </td>
    </tr>
    <tr>
        <td>
    <?php echo $this->Form->end('Add'); ?>      
        </td>
    </tr>
</table>


